<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查询仓位商品</title>
<body class="withvernav">
<style type="text/css">
	.stdform2 span.field, .stdform2 div.field{padding:15px;}
	.stdform2 label{padding:15px;}
	.shop_data div{
	
	}
	.selected{background-color:#e74003}
</style>
<div class="bodywrapper">
    {{include file='/public/leftmenu.tpl'}}
    <div class="centercontent">
        <div class="pageheader notab">
            <h1 class="pagetitle">查询仓位商品</h1>
            <span class="pagedesc"><br></span>
            <div class="menulist">
                <ul class="profile_summary">
                    <li><a href="/purchase/inputstock"><span>盘点日志列表</span></a></li>
                    <li><a href="/purchase/handinputstock"><span>盘点操作</span></a></li>
                    <li class="current"><a href="/factorydetail/ajaxbutton?op=stockGoods"><span>查询仓位商品</span></a></li>
                    <li><a href="/factorydetail/ajaxbutton?op=importGoodsStock"><span>导入盘点商品</span></a></li>
                </ul>
          </div>
      </div>
      <!--pageheader-->

        <div id="contentwrapper" class="contentwrapper">

            <div id="basicform" class="subcontent">

                <!--contenttitle-->

                <form id="form" class="stdform stdform2" enctype="multipart/form-data" method="post" action="/factorydetail/ajaxbutton?op=exportStockGoods">
                    <p>
                        <label>仓库：</label>
                        <span class="field">
                            {{foreach from=$warehouses item=li key=key}}
                                <input type="checkbox" name="storage[]" value="{{$li.id}}" 
                                {{if $cang==$li.id}} selected{{/if}} id="checkbox">{{$li.storagename}} &nbsp;&nbsp;
                            {{/foreach}}
              			</span>
                    </p>
                    <p>
                        <label>商品销售状态：</label>
                        <span class="field">
                            {{foreach from=$salestatus item=res key=key}}
                            	<input type="checkbox" name="saletype[]" value="{{$key}}" 
                                {{if $status==$key}} selected{{/if}} id="checkbox">&nbsp{{$res}} &nbsp;&nbsp;
                            {{/foreach}}
                       </span>
                    </p>
                    <p style="border-bottom:0px">
                    <label>搜索仓位：</label>
                    <div class="field shop_data" style="margin-left:221px;">
                    	{{foreach from=$stock_list item=res key=key2}}
                            <div style="width:110px;float:left;overflow:hidden; text-overflow:ellipsis; white-space:nowrap;" onClick="checkBox('{{$key}}')">
                            <input type="checkbox" name="positions[]" id="{{$key}}"  value="{{$res.positionval}}"  />
                            {{$res.positionval}}</div>
                            &nbsp;&nbsp;
                        {{/foreach}}  
                        <div style="clear:both;"></div> 
                    </div>
                    </p>
                        <p>
                        <label> </label>
						<span class="field">
                        <button id="btn" type="submit" onClick="return setPostUrl()" class="submit radius2">查询仓位商品</button>
                        </span>
                    </p>
                </form>

                <br />

            </div><!--subcontent-->

            <!--subcontent-->

        </div><!--contentwrapper-->

    </div><!-- centercontent -->


</div><!--bodywrapper-->

<script type="text/javascript">
	function setPostUrl(){
		var check_exp_types=",2,3,4,5,10,14";
		var expresstype=$("#deliverType").val();
		/*if(check_exp_types.indexOf(expresstype)>0 || expresstype==1){
			$("#form").attr("action","/CheckExpressPrice/checkDataValidity");	
		}else{
			$("#form").attr("action","/orderexcel/doBillWithExpress");	
		}	*/	
	}
</script>

</body>
</html>


